package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.InvestigationOrderFollowerMapper;
import com.ruoyi.yipaiju.domain.InvestigationOrderFollower;
import com.ruoyi.yipaiju.service.IInvestigationOrderFollowerService;

/**
 * fo_investigation_order_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class InvestigationOrderFollowerServiceImpl implements IInvestigationOrderFollowerService 
{
    @Autowired
    private InvestigationOrderFollowerMapper investigationOrderFollowerMapper;

    /**
     * 查询fo_investigation_order_follower
     * 
     * @param id fo_investigation_order_follower主键
     * @return fo_investigation_order_follower
     */
    @Override
    public InvestigationOrderFollower selectInvestigationOrderFollowerById(Long id)
    {
        return investigationOrderFollowerMapper.selectInvestigationOrderFollowerById(id);
    }

    /**
     * 查询fo_investigation_order_follower列表
     * 
     * @param investigationOrderFollower fo_investigation_order_follower
     * @return fo_investigation_order_follower
     */
    @Override
    public List<InvestigationOrderFollower> selectInvestigationOrderFollowerList(InvestigationOrderFollower investigationOrderFollower)
    {
        return investigationOrderFollowerMapper.selectInvestigationOrderFollowerList(investigationOrderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_investigation_order_follower
     *
     * @param investigationOrderFollower fo_investigation_order_follower
     * @return fo_investigation_order_follower
     */
    @Override
    public InvestigationOrderFollower selectOneInvestigationOrderFollower(InvestigationOrderFollower investigationOrderFollower)
    {
        return investigationOrderFollowerMapper.selectOneInvestigationOrderFollower(investigationOrderFollower);
    }

    /**
     * 新增fo_investigation_order_follower
     * 
     * @param investigationOrderFollower fo_investigation_order_follower
     * @return 结果
     */
    @Override
    public int insertInvestigationOrderFollower(InvestigationOrderFollower investigationOrderFollower)
    {
        investigationOrderFollower.setCreateTime(DateUtils.getNowDate());
        return investigationOrderFollowerMapper.insertInvestigationOrderFollower(investigationOrderFollower);
    }

    /**
     * 修改fo_investigation_order_follower
     * 
     * @param investigationOrderFollower fo_investigation_order_follower
     * @return 结果
     */
    @Override
    public int updateInvestigationOrderFollower(InvestigationOrderFollower investigationOrderFollower)
    {
        investigationOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return investigationOrderFollowerMapper.updateInvestigationOrderFollower(investigationOrderFollower);
    }

    @Override
    public int updateInvestigationOrderFollowerCondition(InvestigationOrderFollower investigationOrderFollower, InvestigationOrderFollower investigationOrderFollowerCondition)
    {
                investigationOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return investigationOrderFollowerMapper.updateInvestigationOrderFollowerCondition(investigationOrderFollower, investigationOrderFollowerCondition);
    }

    /**
     * 批量删除fo_investigation_order_follower
     * 
     * @param ids 需要删除的fo_investigation_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteInvestigationOrderFollowerByIds(Long[] ids)
    {
        return investigationOrderFollowerMapper.deleteInvestigationOrderFollowerByIds(ids);
    }

    /**
     * 删除fo_investigation_order_follower信息
     * 
     * @param id fo_investigation_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteInvestigationOrderFollowerById(Long id)
    {
        return investigationOrderFollowerMapper.deleteInvestigationOrderFollowerById(id);
    }

    /**
     * 条件删除fo_investigation_order_follower
     *
     * @param investigationOrderFollower fo_investigation_order_follower
     * @return 结果
     */
    @Override
    public int deleteInvestigationOrderFollowerByCondition(InvestigationOrderFollower investigationOrderFollower)
    {
        return investigationOrderFollowerMapper.deleteInvestigationOrderFollowerByCondition(investigationOrderFollower);
    }

}
